Skip to main content
Version: 3.x.x

FetchQueryParamsType


import { FetchQueryParamsType } from "@hyper-fetch/core"

Description

It will check if the query params are already set

Defined in request/request.types.ts:220

Preview

type FetchQueryParamsType<QueryParams,HasQuery> = HasQuery extends true ? { queryParams?: NegativeTypes } : { queryParams?: QueryParams };

Structure

HasQuery extends true ? {
queryParams: NegativeTypes;
} : {
queryParams: QueryParams;
}